package com.tzbank.entity.backstage;

import com.tzbank.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 模块表
 * @author XUZONGTIAN
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_module")
@Table(appliesTo = "mb_module", comment = "模块表")
public class Module extends BaseModel implements Serializable {

	private static final long serialVersionUID = -3229728192463459688L;

	/**
	 * 模块名称
	 */
	@ApiModelProperty(value = "模块名称")
	@Column(name = "module_name", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '模块名称'")
	private String moduleName;

	/**
	 * 模块地址
	 */
	@ApiModelProperty(value = "模块地址")
	@Column(name = "module_url", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '模块地址'")
	private String moduleUrl;

	/**
	 * 模块上级
	 */
	@ApiModelProperty(value = "模块上级")
	@Column(name = "module_parent", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '模块上级'")
	private String moduleParent;

}
